//
//  ChatBarMoreView.h
//  keyboard
//
//  Created by 遇水 on 16/3/12.
//  Copyright © 2016年 遇水. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ChatBarMoreViewItemModel.h"
#import "Utiles.h"





@class ChatBarMoreView, ChatBarMoreViewItem;
@protocol ChatBarMoreViewDelegate <NSObject>

-(void)chatBarMoreView:(ChatBarMoreView *)chatBarMoreView didSelectedAtIndex:(ChatBarMoreViewItemType)type;

@end


@protocol ChatBarMoreViewDatasource <NSObject>

/**
 *  传入数据     根据数据来创建个数
 *
 *  @param moreView
 *
 *  @return
 */
- (NSArray<ChatBarMoreViewItemModel *> *)moreViewOfDataSource:(ChatBarMoreView *)moreView;

@end


@interface ChatBarMoreView : UIView

@property (nonatomic, strong) id<ChatBarMoreViewDelegate>    delegate;

@property (nonatomic, strong) id<ChatBarMoreViewDatasource>    dataSource;

//默认4个
@property (nonatomic, assign) NSUInteger    numberForLine;      //每行个数

//不设置间距

-(void)reloadData;



@end
